package com.cjy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Cheng JiYe
 * @description:
 * @date 2020/6/6 12:36
 */
@SuppressWarnings("all")
@ComponentScan("com.cjy")
@SpringBootApplication
public class SpringShiroApplication extends SpringBootServletInitializer {
  public static void main(String[] args) {
    SpringApplication.run(SpringShiroApplication.class, args);
  }

  @Override
  protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    return builder.sources(SpringShiroApplication.class);
  }
}
